package com.gwd.task.exception;

/**
 * @author zhiyongming
 * @date 2020/11/10 18:16
 */
public class UnAuthorizationException extends RuntimeException {

    /**
     * 0: 验证过期
     * 1: 账号密码错误
     * 2: 账号被禁用
     */
    private int type = 0;

    public UnAuthorizationException() {}
    public UnAuthorizationException(int type) { this.type = type; }

    public int getType() { return this.type; }
}
